import request from '@/utils/request'
//商品信息
export function getcase(caseTitle,currentPage,pagesizes) {
  return request({
    url: '/case',
    method: 'get',
    params: { caseTitle,currentPage,pagesizes }
  })
}

//查询总数
export function getCaseTotal() {
  return request({
    url: '/case/total',
    method: 'get',

  })
}

//商品删除
export function deletecase(caseId) {
  return request({
    url: `/case/${caseId}`,
    method: 'delete',
  })
}

//更新
export  function Updatecase(commonGoods){
  return request({
    url: `/case/update`,
    method: 'put',
    data:commonGoods
  })
}

//新增
export function addCase(data) {
  return request({
    url: '/case/insert',
    method: 'post',
    data,
  })

}


